<?php

namespace App\Models\Points;

use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Detail extends Model
{
    protected $table = 'love_points_detail';
    public $primaryKey = 'id';

    const UPDATED_AT = null;

    //积分来源
    public static $typeMap = [
        '1' => '管理员修改',
        '2' => '点评'
    ];

    public function user()
    {
        return $this->belongsTo(User::Class);
    }

}
